package com.yunsc.order.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.store.entity.YunscUserAddressEntity;
import com.yunsc.store.entity.YunscUserCouponEntity;
import lombok.Data;

import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-05-12 14:31
 */
@Data
public class CheckOrderVO {
    // 商品列表
    @JsonProperty("goodsList")
    private List<CheckOrderGoodsVO> goodsList;
    // 订单商品总数量
    @JsonProperty("orderTotalNum")
    private Integer orderTotalNum;
    // 优惠券列表
    @JsonProperty("couponList")
    private List<YunscUserCouponEntity> couponList;
    // 是否有错误
    @JsonProperty("hasError")
    private boolean hasError = false;
    // 错误信息
    @JsonProperty("errorMsg")
    private String errorMsg;
    // 订单类型
    @JsonProperty("orderType")
    private int orderType;
    // 配送方式
    @JsonProperty("delivery")
    private Integer delivery;
    // 收货地址
    private YunscUserAddressEntity address;
    // 是否存在收货地址
    @JsonProperty("existAddress")
    private boolean existAddress;
    // 运费
    @JsonProperty("expressPrice")
    private String expressPrice;
    // 是否在包邮区域内
    @JsonProperty("isIntraRegion")
    private boolean isIntraRegion = true;
    // 是否使用开启积分
    @JsonProperty("isAllowPoints")
    private boolean isAllowPoints;
    // 使用积分
    @JsonProperty("isUsePoints")
    private int isUsePoints;
    // 积分金额
    @JsonProperty("pointsMoney")
    private String pointsMoney;
    // 积分奖励
    @JsonProperty("pointsBonus")
    private Integer pointsBonus;
    // 积分奖励数量
    @JsonProperty("pointsNum")
    private Integer pointsNum;
    // 订单总价格
    @JsonProperty("orderTotalPrice")
    private String orderTotalPrice;
    // 优惠券id
    @JsonProperty("couponId")
    private Integer couponId;
    // 优惠券抵扣金额
    @JsonProperty("couponMoney")
    private String couponMoney;
    // 订单价格
    @JsonProperty("orderPrice")
    private String orderPrice;
    // 订单支付价格
    @JsonProperty("orderPayPrice")
    private String orderPayPrice;

    private String platform;
    private Integer storeId;
    // 买家留言
    private String buyerRemark;



    public boolean getIsIntraRegion() {
        return isIntraRegion;
    }

    public void setIsIntraRegion(boolean isIntraRegion) {
        this.isIntraRegion = isIntraRegion;
    }

    public boolean getIsAllowPoints() {
        return isAllowPoints;
    }

    public void setIsAllowPoints(boolean isAllowPoints) {
        this.isAllowPoints = isAllowPoints;
    }

    public int getIsUsePoints() {
        return isUsePoints;
    }

    public void setIsUsePoints(int isUsePoints) {
        this.isUsePoints = isUsePoints;
    }


    public boolean getHasError() {
        return hasError;
    }


    public void setHasError(boolean hasError) {
        this.hasError = hasError;
    }
}
